import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import moment from 'moment'

import MyHttpServer from '@/plugins/http'

Vue.config.productionTip = false

Vue.use(ElementUI)
Vue.use(MyHttpServer)

// 注册全局时间格式处理的过滤器
Vue.filter('fmBaseDateStyle', (value) => {
  return moment(value * 1000).format('YYYY-MM-DD')
})

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app')
